package net.wanho.controller;

import lombok.RequiredArgsConstructor;
import net.wanho.service.SupplyService;
import net.wanho.vo.AjaxResult;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/supply")
@RequiredArgsConstructor
public class SupplyController {
    private final SupplyService supplyService;
    /**
     *  所有供应商列表
     */
    @GetMapping("/supply-list")
    public AjaxResult supplyList() {
        return AjaxResult.success(supplyService.list());
    }
}
